﻿using Inovout.Security;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace Inovout.Account.Web.Models
{
    public class SignUpInfo
    {
        public virtual bool IsExtensional { get; set; }

        [Required(ErrorMessage = "用户名不可为空")]
        [Alias("用户名")]
        public virtual string UserName { get; set; }

        [Required(AllowEmptyStrings = false, ErrorMessage = "密码不可为空")]
        [DataType(DataType.Password)]
        [StringLength(20, ErrorMessage = "请输入6-20位的密码", MinimumLength = 6)]   
        [Alias("密码")]
        public string Password { get; set; }


        [DataType(DataType.Password)]
        [Compare("Password", ErrorMessage = "密码不一致")]
        [Alias("确认密码")]
        public string ConfirmPassword { get; set; }

        public string OpenIdClaimedIdentifier { get; set; }
        public string OpenIdProvider { get; set; }
        public string OpenIdUserName { get; set; }

        public string Code { get; set; }
        public string AccessToken { get; set; }
        public long AccessTokenExpiredTime { get; set; }
        public string RefreshToken { get; set; }
        public long RefreshTokenExpiredTime { get; set; }

    }    
}